FLAGS= -O3 -g -lpng -lm

mcilk.x : mcilk.o wtime.o print_png.o
	cilkc $(FLAGS) mcilk.o wtime.o print_png.o -o mcilk.x

mcilk.o : mandlebrot.cilk
	cilkc -c $(FLAGS) -o mcilk.o mandlebrot.cilk

wtime.o : wtime.c
	gcc -O3 -c wtime.c

print_png.o : print_png.c
	gcc $(FLAGS) -c print_png.c

clean:
	rm mcilk.x mcilk.o wtime.o print_png.o
